package personal.xjl._23java1studentdemo.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor // 全参构造函数
@NoArgsConstructor
public class Student {
    int id;
    String name;
    String password;
    int sex;
    String clazz;
    String birthday;

    List<Score> scores;//一对多关系的属性
}
